package ntd.util.modular.function.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import ntd.util.config.common.entity.BaseEntityMybatis;
import ntd.util.config.common.enums.app.EnumServerAppType;
import ntd.util.util.metadata.NtdField;

@EqualsAndHashCode(callSuper = true)
@TableName("function_server_app")
@Data
@Schema(description = "功能中心 - 应用服务管理")
public class ServerApp extends BaseEntityMybatis<ServerApp> {

    @Schema(description = "所属机构", title = "所属机构")
    @NtdField(type = 6, oneModular = "common", twoModular = "mechanism")
    private String tenantId;
    @Schema(description = "应用名称", title = "应用名称")
    private String name;
    @Schema(description = "host", title = "host")
    private String host;
    @Schema(description = "应用端口", title = "应用端口")
    private String port;
    @Schema(description = "应用账号", title = "应用账号")
    private String account;
    @Schema(description = "应用密码", title = "应用密码")
    private String password;
    @Schema(description = "应用类型", title = "应用类型")
    private EnumServerAppType enumServerAppType;
    @Schema(description = "备注信息", title = "备注信息")
    private String remark;

}
